package cn.lingyangwl.agile.pay.common.mapper;

import cn.lingyangwl.agile.pay.model.entity.PayOrder;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;

/**
 * 产品订单
 *
 * @author shenguangyang
 */
@Mapper
public interface PayOrderMapper extends BaseMapper<PayOrder> {

    int updateRefundAmountAndCount(@Param("payOrderNo") String payOrderNo,
                                   @Param("currentRefundAmount") BigDecimal refundAmount);
}
